/**
 * Created by JuntaoYi
 * Date 2020/3/26
 */
var url = require('url');
var sha512 = require('js-sha512');

// console.log(url.parse('http://www.baidu.com', true))

// console.log(sha512('123456'))
let str = '51_SIGN_ON_ACT2';

let arr = [true,'in'];
// console.log(arr.indexOf(false));
// console.log(arr.indexOf('in'));

let dt = '2020-04-16 23:59:59';
function timeFormat(date) {
    if (!date) {
        return null;
    }
    date= date.replace(/\-/g,"/");
    let dt = new Date(date);
    let y = dt.getFullYear();
    let m = (dt.getMonth() + 1).toString().padStart(2, '0');
    let d = dt.getDate().toString().padStart(2, '0');
    let hh = dt.getHours().toString().padStart(2, '0');
    let mm = dt.getMinutes().toString().padStart(2, '0');
    return `${y}/${m}/${d} ${hh}:${mm}`
}

function getFileName(name) {
    return name.slice(name.indexOf('.'));
}


var verbCode = '';
let newVerbCode = verbCode.replace(/^\s+|\s+$/g,'');

console.log(Math.ceil(-75.4));
console.log(Math.ceil(75.4));